package org.tobuy.dao;

import java.util.List;

import org.tobuy.vo.Auction;
import org.tobuy.vo.User;

public interface IAuctionDAO {
	public List<Auction> findAuctions() throws Exception;
	public Auction findAuction(String item_id) throws Exception;
	public List<Auction> findBuyerAuctions(User user) throws Exception;
	public List<Auction> findSellerAuctions(User user) throws Exception;
	public boolean addAuction(Auction auction) throws Exception;
	public boolean updateAuction(String item_id, double price, String buyer_id) throws Exception;
	public boolean deleteAuction(String item_id) throws Exception;

}
